
package urbanparks;

/**
 * Park class for storing information of parks.
 * 
 * @author Andrew Boguk
 * @version 1.0
 */
public class Park {
  /** Park name. */
  private final String my_name;
  /** Park street number. */
  private final String my_streetnumber;
  /** Park street. */
  private final String my_street;
  /** Park city. */
  private final String my_city;
  /** Park state. */
  private final String my_state;
  /** Park zipcode. */
  private final String my_zipcode;
  /** Park manager's email. */
  private final String my_manageremail;
  /** Park district. */
  private final String my_parkdistrict;
  /** Park transportation directions. */
  private final String my_transportationdirections;
  /** Park driving directions. */
  private final String my_drivingdirections;

  
  /**
   * Construct class with specified values.
   * 
   * @param the_name Name of park.
   * @param the_streetnumber Street number of park.
   * @param the_street Street of park.
   * @param the_city City of park.
   * @param the_state State of park.
   * @param the_zipcode Zipcode of park.
   * @param the_manageremail Park manager's email.
   * @param the_parkdistrict Park district of park.
   * @param the_transportationdirections Transportation directions to park.
   * @param the_drivingdirections Driving directions to park.
   */
  public Park(final String the_name,
      final String the_streetnumber,
      final String the_street, final String the_city,
      final String the_state, final String the_zipcode,
      final String the_manageremail,
      final String the_parkdistrict,
      final String the_transportationdirections,
      final String the_drivingdirections) {
    my_name = the_name;
    my_streetnumber = the_streetnumber;
    my_street = the_street;
    my_city = the_city;
    my_state = the_state;
    my_zipcode = the_zipcode;
    my_manageremail = the_manageremail;
    my_parkdistrict = the_parkdistrict;
    my_transportationdirections =
        the_transportationdirections;
    my_drivingdirections = the_drivingdirections;
  }

  /**
   * @return Name of park.
   */
  public String getName() {
    return my_name;
  }

  /**
   * @return Street number of park.
   */
  public String getStreetNumber() {
    return my_streetnumber;
  }

  /**
   * @return Street of park.
   */
  public String getStreet() {
    return my_street;
  }

  /**
   * @return City of park.
   */
  public String getCity() {
    return my_city;
  }

  /**
   * @return State of park.
   */
  public String getState() {
    return my_state;
  }

  /**
   * @return Zipcode of park.
   */
  public String getZipcode() {
    return my_zipcode;
  }

  /**
   * @return Park manager's email.
   */
  public String getManagerEmail() {
    return my_manageremail;
  }

  /**
   * @return District of park.
   */
  public String getParkDistrict() {
    return my_parkdistrict;
  }

  /**
   * @return Transportation directions to park.
   */
  public String getPublicTransportationDirections() {
    return my_transportationdirections;
  }

  /**
   * @return Driving directions to park..
   */
  public String getDrivingDirections() {
    return my_drivingdirections;
  }

  /**
   * @return Park information formatting for storage.
   */
  public String getFileString()
  {
    return getName() + "," + getStreetNumber() +
           "," + getStreet()  + "," + getCity() +
           "," + getState() + "," + getZipcode() + 
           "," + getManagerEmail() + "," + getParkDistrict() +
           "," + getPublicTransportationDirections() + 
           "," + getDrivingDirections();
  }
}
